diff options
Diffstat (limited to 'paredit [disowned]')
-rw-r--r-- | paredit [disowned]/PKGBUILD | 28 | ||||
-rw-r--r-- | paredit [disowned]/paredit.install | 17 | ||||
l--------- | paredit [disowned]/upload | 1 | ||||
-rwxr-xr-x | paredit [disowned]/watch- | 21 |
4 files changed, 67 insertions, 0 deletions
diff --git a/paredit [disowned]/PKGBUILD b/paredit [disowned]/PKGBUILD new file mode 100644 index 0000000..ad8ffc6 --- /dev/null +++ b/paredit [disowned]/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> +pkgname=paredit +pkgver=24 +_pkgver=$pkgver +pkgrel=1 +pkgdesc="Emacs minor mode for pseudo-structurally editing Lisp code" +arch=('any') +url="http://www.emacswiki.org/emacs/ParEdit" +license=('GPL') +makedepends=('emacs') +install=paredit.install +source=("http://mumble.net/~campbell/emacs/$pkgname-${_pkgver}.el") +sha256sums=('6a1ead320d0fc3032d0359e6f66e3b62b065eea71f70a5315de0b06930b2e35e') + +build() { + cd "$srcdir" + emacs -Q -batch -f batch-byte-compile paredit-${_pkgver}.el +} + +package() { + cd "$srcdir" + + install -D -m644 paredit-${_pkgver}.elc \ + "$pkgdir/usr/share/emacs/site-lisp/paredit.elc" || return 1 + install -D -m644 paredit-${_pkgver}.el \ + "$pkgdir/usr/share/emacs/site-lisp/paredit.el" || return 1 +} + diff --git a/paredit [disowned]/paredit.install b/paredit [disowned]/paredit.install new file mode 100644 index 0000000..210acab --- /dev/null +++ b/paredit [disowned]/paredit.install @@ -0,0 +1,17 @@ +post_install() { + cat << 'EOF' +==> Put this in your $HOME/.emacs file to enable autoloading of paredit: + +(autoload 'paredit-mode "paredit" + "Minor mode for pseudo-structurally editing Lisp code." t) + +==> Toggle Paredit Mode with `M-x paredit-mode RET', or enable it +==> always in a major mode `M' (e.g., `lisp' or `scheme') with: + +(add-hook M-mode-hook (lambda () (paredit-mode +1))) +EOF +} + +post_upgrade() { + post_install +} diff --git a/paredit [disowned]/upload b/paredit [disowned]/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/paredit [disowned]/upload @@ -0,0 +1 @@ +../upload
\ No newline at end of file diff --git a/paredit [disowned]/watch- b/paredit [disowned]/watch- new file mode 100755 index 0000000..71ad30d --- /dev/null +++ b/paredit [disowned]/watch- @@ -0,0 +1,21 @@ +#!/bin/sh + +[ -f paredit.release ] && rm paredit.release + +wget 'http://mumble.net/~campbell/emacs' -O paredit.release >/dev/null 2>/dev/null + +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + md5sum paredit.release > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'paredit' + fi +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'paredit (unfetchable)' +fi + |